package com.cheng.spider.header;

import org.apache.http.Header;

public abstract class AbstractHeaderSource implements HeaderSource {
    protected Header[] headers = null;

    @Override
    public Header[] getHeaders() {
        if (headers == null) {
            loadHeaders();
        }
        return headers;
    }

    protected abstract void loadHeaders();
}
